// API配置文件
export const API_CONFIG = {
  // 开发环境
  development: {
    baseURL: 'http://192.168.1.100:3000', // 替换为你的服务器IP
    timeout: 10000
  },
  // 生产环境
  production: {
    baseURL: 'https://your-production-domain.com',
    timeout: 15000
  }
};

// 当前环境
export const CURRENT_ENV = 'development';

// API端点
export const API_ENDPOINTS = {
  REGISTER: '/api/register',
  LOGIN: '/api/login',
  GET_USER_INFO: '/api/user',
  UPLOAD_AVATAR: '/api/upload-avatar',
  CHAT_SAVE: '/api/chat/save',
  CHAT_HISTORY: '/api/chat/history'
};

// 获取当前配置
export function getApiConfig() {
  return API_CONFIG[CURRENT_ENV];
} 